package com.thread1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YJ
 * Date: 2023-10-06
 * Time: 18:22
 */
public class ThreadTest {
    public static void main(String[] args) {
        MyRun mr = new MyRun();
        Thread t1 = new Thread(mr);
        Thread t2 = new Thread(mr);
        t1.setName("线程1");
        t2.setName("线程2");
        t1.start();
        t2.start();
    }
}
